package com.orphan.marketFront.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author lucangtian
 * @since 2021-07-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_user_detail")
public class UserDetail extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "detail_id", type = IdType.AUTO)
    private Long detailId;

    @TableField(exist = false)
    private User user;

    private String company;

    private String identity;

    private String license;

    /**
     * 默认为0
     */
    private Integer level;

    /**
     * 0-1，0.95是95折。默认为1，不打折
     */
    private Float levelDiscount;

    /**
     * 默认为0，不能购买
     */
    private Integer power;

    /**
     * 默认为0，没冻结
     */
    private Integer isFrozen;


}
